package com.tt.service.impl;

import com.tt.dao.InfoMapper;
import com.tt.pojo.Info;
import com.tt.service.InfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InfoServiceImpl implements InfoService {
    @Autowired
    InfoMapper infoMapper;
    @Override
    public List<Info> getInfoList(Info info) {
        return infoMapper.getInfoList(info);
    }

    @Override
    public int addInfo(Info info) {
        return infoMapper.addInfo(info);
    }
}
